package com.ojoin.trade.common.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * 支付服务接口  返回码常量定义
 * @author guoting
 *
 */
public class IPayResponseCodeConst {

	// 00  成功
	public final static String SUCCESS = "00";

	// 01  失败
	public final static String ERR_FAILED = "01";

	// 02  无效商户号
	public final static String ERR_INVALIDMTHNO = "02";

	// 03  金额不足
	public final static String ERR_MONEYNOTENOUGH = "03";
	
	// 04  未知错误
	public final static String ERR_UNKNOWN = "04";

	public final static Map<String, String> resCodeMap = new HashMap<String, String>();
	static {
		resCodeMap.put(SUCCESS, "成功");
		resCodeMap.put(ERR_FAILED, "失败");
		resCodeMap.put(ERR_INVALIDMTHNO, "无效商户号");
		resCodeMap.put(ERR_MONEYNOTENOUGH, "金额不足");
		resCodeMap.put(ERR_UNKNOWN, "未知错误");
	}
}
